home *** CD-ROM | disk | FTP | other *** search
- /*
- ** This is the TTEApp class definition. This class is an adaptation of
- ** the class of the same name in the book, Elements of C++ Macintosh
- ** Programming, by Dan Weston.
- **
- ** Copyright © 1991 Mark Gross
- ** (RR2, Box 84, Clayville, NY 13322);
- ** this file may be published everywhere, but no charge
- ** may be made for its use. Please contact me about any bugs found.
- ** I'm also looking for Macintosh development work, so drop me a line
- ** if you think I could help.
- */
-
- #include "TTEApp.h"
- #include "TTEDoc.h"
- #include <oops.h>
-
- TDoc* TTEApp::MakeDoc(SFReply *reply)
- {
- TDoc *tempDoc;
-
- tempDoc = (TTEDoc *) new(TTEDoc);
- tempDoc->Init(GetCreator(), reply);
- return tempDoc;
- }/*end function*/
-
-
- void TTEApp::GetFileTypeList(void)
- {
- fFileTypeList[0] = 'TEXT';
- }
-
-
- int TTEApp::GetNumFileTypes(void)
- {
- return 1;
- }
-
-
- Boolean TTEApp::CanOpen(void)
- {
- return TRUE;
- }
-
-
- OSType TTEApp::CanAcceptClipType(void)
- {
- return 'TEXT';
- }
-
-